/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mtvotingserver;

/**
 *
 * @author Alex Hrin
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
        
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : 
                    javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
        } catch (InstantiationException ex) {
        } catch (IllegalAccessException ex) {
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
        }
        
        // Initialise server, view and controller
        ServerModel sm = new ServerModel();
        ViewController vc = new ViewController(new View(sm), sm);
    }

}
